Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Microsoft.​AspNetCore.​Authentication.​ResultContext<​TOptions>
Assembly: Microsoft.AspNetCore.Authentication
Inheritance: object → BaseContext<​TOptions> → ResultContext
Base context for events that produce AuthenticateResults.
Properties
Principal
Gets or sets the <see cref="T:System.Security.Claims.ClaimsPrincipal" /> containing the user claims.
public
AuthenticationProperties
Properties
Gets or sets the <see cref="T:Microsoft.AspNetCore.Authentication.AuthenticationProperties" /> .
public
AuthenticateResult
Result
Gets the <see cref="T:Microsoft.AspNetCore.Authentication.AuthenticateResult" /> result.
public
AuthenticationScheme
Scheme
public
TOptions
Options
HttpContext
Request
Response
Methods
public
void
Success​()
Calls success creating a ticket with the <see cref="P:Microsoft.AspNetCore.Authentication.ResultContext`1.Principal" /> and <see cref="P:Microsoft.AspNetCore.Authentication.ResultContext`1.Properties" /> .
public
void
NoResult​()
Indicates that there was no information returned for this authentication scheme.
public
void
Fail​(System.​Exception failure)
Indicates that there was a failure during authentication.
public
void
Fail​(string failureMessage)
Indicates that there was a failure during authentication.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object